Half wave AC to DC controlled rectifier simulation in PSIM